import request from '@/utils/request'

// 获取员工列表信息
// data: { page, size }
export const getEmployees = function(data) {
  return request.get('/sys/user', { params: data })
}

/**
 * @description: 删除员工
 * @param {*} id 员工id
 * @return {*}
 */
export function delEmployee(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}

// 添加新员工
export function addEmployee(data) {
  request.post('/sys/user', data)
}
